from osgeo import gdal

filename = "D:\python-workspace\GIS\gdal-demo\shpdata\\bou2_4p.shp"
dataset = gdal.Open(filename,gdal.GA_ReadOnly)
print(dataset)